package com.example.demo.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import com.example.demo.pojo.Hello;


public interface UserMapper {
	@Select(value = { "select * from hello" })
	List<Hello> allUser();

	Hello getUserByid(int id);
	@Delete(value = {"delete from hello where id=#{id}"})
	void  deleteuser(String id);

	void deleteuserrole(int uid);

	void adduser(Hello user);

	void updateByPrimaryKeySelective(Hello user);

	int getUidByusername(String username);
}
